<!DOCTYPE html>
<html lang="en">
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>spinning tile</title>
  <link rel="stylesheet" href="./style.css" type="text/css" />
  <body>
    <div class="world"></div>
    <script>
      const amount = 100;
      const world = document.querySelector(".world");
      world.style.setProperty("--amount", amount);
      //   const amount = world.getAttribute("date-amount");
      const frag = document.createDocumentFragment();
      for (let i = 0; i < amount; i++) {
        const tile = document.createElement("div");
        tile.classList.add(`delay-${i + 1}`);
        frag.appendChild(tile);
      }
      world.appendChild(frag);
    </script>
  </body>
</html>
